﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" mc:Ignorable="d"
	x:Class="PRScreenWithKinect.MainWindow"
	x:Name="Window"
	Title="MainWindow"
	Width="1440" Height="900"  Background="Black" WindowStartupLocation="CenterOwner" Top="0" WindowStyle="None" WindowState="Maximized">
	<Window.Resources>
		<Storyboard x:Key="HoldTime">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ed:Arc.StartAngle)" Storyboard.TargetName="arc">
				<EasingDoubleKeyFrame KeyTime="0:0:1.5" Value="360"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>

			<Storyboard x:Key="LHoldTime">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ed:Arc.StartAngle)" Storyboard.TargetName="arc_l">
				<EasingDoubleKeyFrame KeyTime="0:0:1.5" Value="360"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		
		<Storyboard x:Key="PointerFadeIn">
			 <DoubleAnimation		Storyboard.TargetName="PointerCanvas"
                                    Storyboard.TargetProperty="Opacity"
                                    From="0.1" To="1.0" Duration="0:0:0.5"
                                    />
			<DoubleAnimation		Storyboard.TargetName="HomeMenuIcon"
                                    Storyboard.TargetProperty="Opacity"
                                    From="0.1" To="1" Duration="0:0:0.5"
                                    />
		</Storyboard>
		<Storyboard x:Key="PointerFadeOut">
			 <DoubleAnimation		Storyboard.TargetName="PointerCanvas"
                                    Storyboard.TargetProperty="Opacity"
                                    From="1" To="0.1" Duration="0:0:0.5"
                                    />
			<DoubleAnimation		Storyboard.TargetName="HomeMenuIcon"
                                    Storyboard.TargetProperty="Opacity"
                                    From="1" To="0.1" Duration="0:0:0.5"
                                    />
		</Storyboard>
        <Storyboard x:Key="BouceFX">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName=""
                                       Storyboard.TargetProperty="Height">
                <EasingDoubleKeyFrame KeyTime="0:0:0"
                                  Value="-100" />
                <EasingDoubleKeyFrame KeyTime="0:0:1"
                                  Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <ElasticEase EasingMode="EaseOut"
                               
                                     Oscillations="1"
                                  />
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>
	<Canvas x:Name="Main" Margin="467,0,385,0"  Width="548" d:LayoutOverrides="HorizontalAlignment" Height="900" MouseMove="Main_MouseMove">
		<Button x:Name="BlurBT" Content="Blur" Canvas.Left="-452.5" Canvas.Top="15.04" Width="75" Click="Blur" />
		<Button x:Name="BillboardBT" Content="Billboard" Canvas.Left="-237" Canvas.Top="15.04" Width="75" Click="Button_Click_1" />
		<StackPanel x:Name="MarqueePanel" Height="37" Width="548" Canvas.Left="0" Canvas.Top="0" Panel.ZIndex="1"/>
		<StackPanel x:Name="MainPanel" Height="863" Width="548" Canvas.Top="37"/>
		<StackPanel x:Name="HomeMenu" HorizontalAlignment="Center" Height="400" Canvas.Top="138.332" VerticalAlignment="Center" Width="548" Panel.ZIndex="2" />
		<Canvas x:Name="HomeMenuIcon" Height="58" Canvas.Left="470" Canvas.Top="57" Width="58" Panel.ZIndex="1">
			<Path Data="F1M433.2881,180.8154C433.2881,251.8114,375.7431,309.3564,304.7531,309.3564C233.7641,309.3564,176.2121,251.8114,176.2121,180.8154C176.2121,109.8194,233.7641,52.2734,304.7531,52.2734C375.7431,52.2734,433.2881,109.8194,433.2881,180.8154" Fill="Black" Height="53.332" Canvas.Left="2.008" Stretch="Fill" Canvas.Top="2.008" Width="53.33" IsHitTestVisible="False" />
			<Path Data="F1M304.7534,61.9556C239.2124,61.9556,185.8934,115.2746,185.8934,180.8156C185.8934,246.3526,239.2124,299.6756,304.7534,299.6756C370.2914,299.6756,423.6074,246.3526,423.6074,180.8156C423.6074,115.2746,370.2914,61.9556,304.7534,61.9556 M304.7534,319.0386C228.5384,319.0386,166.5304,257.0306,166.5304,180.8156C166.5304,104.6016,228.5384,42.5926,304.7534,42.5926C380.9674,42.5926,442.9694,104.6016,442.9694,180.8156C442.9694,257.0306,380.9674,319.0386,304.7534,319.0386" Fill="#FFF2F2F3" Height="57.349" Canvas.Left="0" Stretch="Fill" Canvas.Top="0" Width="57.347" IsHitTestVisible="False" />
			<Path Data="F1M294.8765,197.1714C294.8765,199.9074,292.6675,202.1314,289.9255,202.1314L279.1445,202.1314C276.4095,202.1314,274.1935,199.9074,274.1935,197.1714L274.1935,186.4004C274.1935,183.6774,276.4095,181.4584,279.1445,181.4584L289.9255,181.4584C292.6675,181.4584,294.8765,183.6774,294.8765,186.4004z M304.7625,156.1024L256.4605,178.9054L256.4605,227.9804L320.1325,227.9804L320.1325,199.0054C320.1325,196.1004,322.4895,193.7364,325.4015,193.7364L336.3685,193.7364C339.2805,193.7364,341.6375,196.1004,341.6375,199.0054L341.6375,227.9804L353.0405,227.9804L353.0405,178.9054z" Fill="White" Height="14.91" Canvas.Left="18.656" Stretch="Fill" Canvas.Top="23.548" Width="20.036" IsHitTestVisible="False" />
			<Path Data="F1M369.207,157.4697L341.499,148.3617L343.68,133.6567L333.822,134.2937L333.86,145.8597L309.266,137.7917C307.653,137.0487,305.985,136.7197,304.511,136.8277C303.282,136.7517,301.942,136.9347,300.6,137.4197L240.956,158.5727C237.047,159.9407,234.662,163.2807,235.632,166.0347L239.877,175.8427C240.848,178.5967,244.803,179.6997,248.721,178.3007L304.454,150.1017L360.729,176.9017C364.479,178.6847,368.532,178.0047,369.787,175.3947L373.72,165.4297C374.968,162.8147,372.951,159.2407,369.207,157.4697" Fill="White" Height="9.387" Canvas.Left="14.291" Stretch="Fill" Canvas.Top="18.891" Width="28.767" IsHitTestVisible="False" />
		</Canvas>
		<Button Content="Home" Canvas.Left="-316" Canvas.Top="15.04" Width="75" Click="Button_Click_2" />
		<Button Content="News" Canvas.Left="-316" Canvas.Top="41" Width="75" Click="Button_Click_3" />
		<Button Content="Location" Canvas.Left="-316" Canvas.Top="66.96" Width="75" Click="Button_Click_4" />
		<Button Content="About Fac" Canvas.Left="-316" Canvas.Top="93.04" Width="75" Click="Button_Click"/>
		<Button x:Name="GuestbookButton" Content="Guestbook" Canvas.Left="-316" Canvas.Top="122.166" Width="75" RenderTransformOrigin="0.516,0.493" Click="OpenGuestBook"/>
		<Button Content="Gallery" Canvas.Left="-316" Style="{DynamicResource SimpleButton}" Canvas.Top="148.126" Width="75" Click="GalleryPress"/>
		<Image x:Name="KinectImage" Height="78" Canvas.Left="403" Canvas.Top="778" Width="120" Panel.ZIndex="2" Source="Images/Balloon/bolloon4.png" Opacity="0.495"/>
		<Canvas x:Name="PointerCanvas" Height="892" Width="548" Panel.ZIndex="4" Opacity="0.1">
			
            <Grid x:Name="RhandControl" Height="60" Width="60" Canvas.Left="252" Canvas.Top="682" IsEnabled="False">
				<Grid.Effect>
					<DropShadowEffect ShadowDepth="2"/>
				</Grid.Effect>
				<ed:Arc x:Name="arc_Copy" ArcThickness="7" ArcThicknessUnit="Pixel" EndAngle="360" Fill="White" Stretch="None" Stroke="Black" Margin="0" Width="60" Height="60" HorizontalAlignment="Center" VerticalAlignment="Center" StrokeThickness="0"/>
				<ed:Arc x:Name="arc" ArcThickness="7" ArcThicknessUnit="Pixel" EndAngle="0" Fill="Red" Stretch="None" Stroke="Black" Margin="0" Width="60" Height="60" HorizontalAlignment="Center" VerticalAlignment="Center" StrokeThickness="0" Visibility="Hidden"/>
				<Image IsHitTestVisible="False" x:Name="Rhand"  Margin="12.5,13.5,16.5,15.5" Source="Rhand.png" OpacityMask="#FF8D8686"/>
			</Grid>
			<Grid x:Name="LhandControl" Height="60" Width="60" Canvas.Left="188" Canvas.Top="590.5" IsEnabled="False">
				<Grid.Effect>
					<DropShadowEffect ShadowDepth="2"/>
				</Grid.Effect>
				<ed:Arc x:Name="arc_Copy1" ArcThickness="7" ArcThicknessUnit="Pixel" EndAngle="360" Fill="White" Stretch="None" Stroke="Black" Margin="0" Width="60" Height="60" HorizontalAlignment="Center" VerticalAlignment="Center" StrokeThickness="0"/>
				<ed:Arc x:Name="arc_l" ArcThickness="7" ArcThicknessUnit="Pixel" EndAngle="0" Fill="Red" Stretch="None" Stroke="Black" Margin="0" Width="60" Height="60" HorizontalAlignment="Center" VerticalAlignment="Center" StrokeThickness="0" Visibility="Hidden"/>
				<Image IsHitTestVisible="False" x:Name="Lhand"  Margin="12.5,13.5,16.5,15.5" Source="Lhand.png" OpacityMask="#FF8D8686"/>
			</Grid>
		</Canvas>
		<Button x:Name="StartHoldBT" Content="Start Hold" Canvas.Left="-452.5" Canvas.Top="47.333" Width="75" Click="StartHoldBT_Click"/>
		<Button x:Name="Swipe_LeftBT" Content="Swipe Left" Canvas.Left="-452.5" Canvas.Top="200" Width="75" Click="Swipe_LeftBT_Click"/>
		<Button x:Name="Swipe_RightBT" Content="Swipe Right" Canvas.Left="-354" Canvas.Top="200" Width="75" Click="Swipe_RightBT_Click"/>
		<Button x:Name="HumanInBT" Content="Human In" Canvas.Left="-452.5" Canvas.Top="243" Width="75" Click="HumanInBT_Click"/>
		<Button x:Name="HumanOutBT" Content="Human Out" Canvas.Left="-354" Canvas.Top="243" Width="75" Click="HumanOutBT_Click"/>
        <TextBox Canvas.Left="-441" Canvas.Top="335" Height="31" Name="textBox1" Width="113" />
        <Canvas x:Name="_Loading" Height="892" Width="548" Background="White">
        	<TextBlock Canvas.Left="218" TextWrapping="Wrap" Text="Loading...." Canvas.Top="381" Height="38.46" Width="132.097" FontSize="26.667" FontFamily="/PRScreenWithKinect;component/Fonts/#TH SarabunPSK" TextAlignment="Center"/>
        	<ed:Arc ArcThickness="0" ArcThicknessUnit="Pixel" EndAngle="90" Fill="#FFF4F4F5" Height="138" Canvas.Left="212.097" Stretch="None" Stroke="Black" StartAngle="-264" Canvas.Top="329" Width="138" StrokeThickness="10"/>
        </Canvas>
    </Canvas>


</Window>